import store from '@/store';

const loading: ILoading = {
  show() {
    store.commit('SET_SPINNING', true);
  },
  hide() {
    store.commit('SET_SPINNING', false);
  }
};

export default loading;
